package cn.ekuma.epos.panel;

import java.awt.event.ActionEvent;

import javax.swing.JComponent;
import javax.swing.JPanel;
import javax.swing.JToolBar;

import cn.ekuma.data.dao.bean.I_BaseBean;
import cn.ekuma.data.ui.swing.AbstractDTOTableModel;
import com.openbravo.data.basic.BasicException;

public abstract  class AbstractSingleJModelFinishingPanel<T extends I_BaseBean> extends AbstractJModelFinishingPanel<T, T> {

	public AbstractSingleJModelFinishingPanel(AbstractDTOTableModel<T> tableModel) {
		super(tableModel);
	}
	
	@Override
	public void activate() throws BasicException {
	}

	@Override
	public boolean deactivate() {
		return true;
	}

	@Override
	public JComponent getComponent() {
		return this;
	}

	@Override
	protected void m_jBarcode1ActionPerformed(ActionEvent e) {
	}

	@Override
	protected void configNavigator(JPanel jNavigatorToolBar, JPanel jNavigator) {
	}


	@Override
	protected void configToolBar(JToolBar jToolBar12) {
	}

	
	protected T convectToViewModel(T obj) {
		return obj;
	}

	
	protected T convectToEditModel(T obj) throws BasicException {
		return obj;
	}

}
